package com.bawei.park2302.park

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.bawei.lib_base.utils.utils.mvi.BaseActivity
import com.bawei.lib_base.utils.utils.mvi.BaseViewActivity
import com.bawei.park2302.R
import com.bawei.park2302.databinding.ActivityParkVrBinding
import com.google.vr.sdk.widgets.pano.VrPanoramaView
import dagger.hilt.android.AndroidEntryPoint

@Route(path = "/app/ParkVrActivity")
@AndroidEntryPoint
class ParkVrActivity : BaseViewActivity<ActivityParkVrBinding>() {
    override val binding: ActivityParkVrBinding by lazy {
        ActivityParkVrBinding.inflate(layoutInflater)
    }

    override fun initView() {
        val options = VrPanoramaView.Options()

        options.inputType = VrPanoramaView.Options.TYPE_MONO

        binding.parkVr.loadImageFromBitmap(Bitmap.createBitmap(BitmapFactory.decodeResource(resources,R.drawable.vrimg)),options)
    }

    override fun initData() {

    }
}